import request from '@/utils/http';

// 获取部门树
export function getDepartmentTree(params) {
	return request({
		url: '/common/department/getDepartmentTree',
		method: 'get',
		params
	});
}

// 站点列表
export function getSingleList(params) {
	return request({
		url: '/common/location/getAllList',
		method: 'get',
		params
	});
}

// 未关联用户信息
export const noAuthUserList = function (params) {
	return request({
		url: '/customer/knowledge/type/auth/user/list',
		method: 'get',
		params
	});
};

// 设置权限
export const setAuthKnowledge = function (data) {
	return request({
		url: '/anchor/platform/manager/agentOperate/addAgentOperate',
		method: 'post',
		data
	});
};

// 用户列表
export const getAgentOperateUserList = function (params) {
	return request({
		url: '/anchor/platform/manager/agentOperate/userList	',
		method: 'get',
		params
	});
};

// 拓展邀约码变更
export const setUpdateOpen = function (data) {
	return request({
		url: '/anchor/platform/manager/agentOperate/updateOpen',
		method: 'post',
		data
	});
};

//换绑用户搜索

export const getUserSearch = function (params) {
	return request({
		url: '/anchor/platform/manager/agentOperate/userSearch',
		method: 'get',
		params
	});
};

// 更换绑定
export const postChangeBinding = function (data) {
	return request({
		url: '/anchor/platform/manager/agentOperate/changeBinding',
		method: 'post',
		data
	});
};
